﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Infrastructure;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Docking;
using IActiveAware = Microsoft.Practices.Prism.IActiveAware;

namespace Login.Views
{
  public  class DockingPaneBase : RadPane, IPaneModel, IActiveAware
    {
        public virtual DockState Position => DockState.DockedLeft;
        public event EventHandler IsActiveChanged;
        static DockingPaneBase()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DockingPaneBase),
                new FrameworkPropertyMetadata(typeof(DockingPaneBase)));
        }
        protected override void OnIsActiveChanged()
        {
            base.OnIsActiveChanged();
            IsActiveChanged?.Invoke(this, EventArgs.Empty);
        }
    }
}
